      yyy = yy(~isnan(yy));
      [n_yy,yy_bins] = hist(yyy,10);
      
      rrr = rr(~isnan(rr));
      n_rr = hist(rrr,yy_bins);
      
      if ~isempty(yyy)
        figure(fig_n)
        subplot(3,2,hor); 
        P = bar(yy_bins,[n_yy; n_rr]');
        set(P(2),'Facecolor',[.5 .5 .5]);
        set(P(1),'Facecolor','none');
        set(P,'BarWidth',1)
        title(['horizon: ' num2str(hor,' %2.0f')] );
      end
 